home *** CD-ROM | disk | FTP | other *** search
/ PC Home 138 / PC Home issue 138.iso / Software / Essentials / Netscape / nim.xpi / bin / chrome / aim.jar / content / aim / pref-IM_privacy.xul < prev    next >
Encoding:
Extensible Markup Language  |  2002-06-25  |  6.6 KB  |  139 lines

  1. <?xml version="1.0"?>
  2.  
  3. <?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
  4. <?xml-stylesheet href="chrome://aim/skin/prefPanels.css" type="text/css"?>
  5.  
  6. <!DOCTYPE window SYSTEM "chrome://communicator/locale/pref/pref-IM_privacy.dtd">
  7.  
  8. <page xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  9.       xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  10.       onload="aimPreferenceOnload(); parent.initPanel('chrome://aim/content/pref-IM_privacy.xul'); PrefIMPrivacyOnLoad();"
  11.       headertitle="&privacyPanel.title;">
  12.  
  13.   <script language="JavaScript">
  14.     <![CDATA[
  15.     _elementIDs = ["privacyView", "chatInvites"];          
  16.     ]]>
  17.   </script>
  18.   <script language="JavaScript" src="chrome://aim/content/aimHelpers.js"/>
  19.   <script language="javascript" src="chrome://aim/content/prefIM.js"/>
  20.  
  21.     
  22.   <radiogroup id="privacyMode">
  23.  
  24.   <groupbox>
  25.     <caption label="&header1.label;"/>
  26.     
  27.     <grid flex="1">
  28.       <columns>
  29.         <column flex="1"/>
  30.         <column flex="1"/>
  31.         <column flex="1"/>
  32.       </columns>
  33.       <rows>
  34.         <row>
  35.           <!-- VISHY since the privacyMode is stored in feedbag, it is confusing to also have it in the prefs file.
  36.           Instead we read and write the feedbag everytime this radio is modified and also at startup -->
  37.           <vbox>
  38.             <radio class="small-margin" id="aim_privacy_contact_allowallusers" label="&allowAllUsers.label;" accesskey="&allowAllUsers.accesskey;" oncommand="privacyModeRadio(Components.interfaces.nsAimPrivacyModes.AllowAll);"/>
  39.             <radio class="small-margin" id="aim_privacy_contact_allowbuddylistusers" label="&allowBuddyUsers.label;" accesskey="&allowBuddyUsers.accesskey;" oncommand="privacyModeRadio(Components.interfaces.nsAimPrivacyModes.AllowBuddies);"/>
  40.             <radio class="small-margin" id="aim_privacy_contact_allowonlylist" label="&allowOnly.label;" accesskey="&allowOnly.accesskey;" oncommand="privacyModeRadio(Components.interfaces.nsAimPrivacyModes.AllowList);"/>
  41.           </vbox>
  42.           <spacer flex="1"/>
  43.           <vbox>
  44.             <spacer flex="1"/>
  45.             <radio class="small-margin" id="aim_privacy_contact_blockallusers" label="&blockAllUsers.label;" accesskey="&blockAllUsers.accesskey;" oncommand="privacyModeRadio(Components.interfaces.nsAimPrivacyModes.DenyAll);"/>
  46.             <radio class="small-margin" id="aim_privacy_contact_blocklistusers" label="&blockUsersBelow.label;" accesskey="&blockUsersBelow.accesskey;" oncommand="privacyModeRadio(Components.interfaces.nsAimPrivacyModes.DenyList);"/>
  47.           </vbox>
  48.         </row>
  49.  
  50.         <row>
  51.           <listbox datasources="rdf:null" ref="NC:AIM/Privacy" id="Allow"  flex="1" rows="5" >
  52.             <template>
  53.               <rule>
  54.                 <conditions>
  55.                   <content uri="?uri" />
  56.                   <triple subject="?uri" predicate="http://home.netscape.com/NC-rdf#Allow" object="?child" />
  57.                   <triple subject="?child" predicate="http://home.netscape.com/NC-rdf#ScreenName" object="?ScreenName" />
  58.                 </conditions>
  59.                 <action>
  60.                   <listitem uri="?child" label="?ScreenName"/>
  61.                 </action>
  62.               </rule>
  63.             </template>
  64.           </listbox>
  65.           
  66.           <spacer flex="1"/>
  67.           
  68.           <listbox  datasources="rdf:null" ref="NC:AIM/Privacy" id="Deny"  flex="1" rows="5">
  69.             <template>
  70.               <rule>
  71.                 <conditions>
  72.                   <content uri="?uri" />
  73.                   <triple subject="?uri" predicate="http://home.netscape.com/NC-rdf#Deny" object="?child" />
  74.                   <triple subject="?child" predicate="http://home.netscape.com/NC-rdf#ScreenName" object="?ScreenName" />
  75.                 </conditions>
  76.                 <action>
  77.                   <listitem uri="?child" label="?ScreenName"/>
  78.                 </action>
  79.               </rule>
  80.             </template>
  81.           </listbox>
  82.           
  83.         </row>
  84.         <row>
  85.           <hbox>
  86.             <spacer flex="1"/>
  87.             <button class="push dialog small-margin" id="button1" label="&addNameButton.label;" accesskey="&addNameButton.accesskey;"
  88.                     oncommand="PostGetUserDlg( 'Allow' );"/>
  89.             <button class="push dialog small-margin" id="button2" label="&removeButton.label;" accesskey="&removeButton.accesskey;"
  90.                     oncommand="DeleteFromList( 'Allow' );"/>
  91.             <spacer flex="1"/>
  92.           </hbox>
  93.           
  94.           <spacer flex="1"/>
  95.           
  96.           <hbox>
  97.             <spacer flex="1"/>
  98.             <button class="push dialog small-margin" id="button3" label="&addNameButton.label;" accesskey="&addNameButton2.accesskey;"
  99.                     oncommand="PostGetUserDlg( 'Deny' );"/>
  100.             <button class="push dialog small-margin" id="button4" label="&removeButton.label;" accesskey="&removeButton2.accesskey;"
  101.                     oncommand="DeleteFromList( 'Deny' );"/>
  102.             <spacer flex="1"/>
  103.           </hbox>
  104.         </row>
  105.       </rows>
  106.     </grid>
  107.     
  108.     <hbox>
  109.       <checkbox id="chatInvites" class="small-margin" label="&chatInvites.label;" accesskey="&chatInvites.accesskey;" 
  110.                 pref="true" prefscope="0" preftype="bool"  prefattribute="checked" prefstring="aim.chat.unavailable"
  111.                 oncommand="privacyChatInvites( this.checked );"/> 
  112.     </hbox>
  113.     <hbox>
  114.       <checkbox id="idle" class="small-margin" label="&idleTimeCheckbox.label;" accesskey="&idleTimeCheckbox.accesskey;"
  115.                 oncommand="privacyIdle(this.checked);"/> 
  116.     </hbox>
  117.  
  118.   </groupbox> 
  119.   </radiogroup>
  120.   
  121.   <groupbox>
  122.     <caption label="&header3.label;"/>
  123.     
  124.     <!-- VISHY since the privacyView is stored in AOL MORF database, it is confusing to also have it in the prefs file.
  125.     Instead we read and write the MORF DB everytime this radio is modified or read -->
  126.  
  127.     <menulist id="privacyView" class="small-margin">
  128.       <menupopup>
  129.         <menuitem value="3" id="fulldisclosure" label="&myScreenName.label;"
  130.                   oncommand="privacyViewRadio(Components.interfaces.nsIAimAdminRegStatusPref.FullDisclosure);"/>
  131.         <menuitem value="2" id="limiteddisclosure" label="&haveAnAccount.label;"
  132.                   oncommand="privacyViewRadio(Components.interfaces.nsIAimAdminRegStatusPref.LimitedDisclosure);"/>
  133.         <menuitem value="1" id="nodisclosure" label="¬hingAboutMe.label;"
  134.                   oncommand="privacyViewRadio(Components.interfaces.nsIAimAdminRegStatusPref.NoDisclosure);"/>
  135.       </menupopup>
  136.     </menulist>    
  137.   </groupbox>    
  138. </page>
  139.